package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.entity.pojo.Ordr;
import org.springframework.transaction.annotation.Transactional;

public interface OrderService extends IService<Ordr> {
    public Ordr getOrder(Long id);

    @Transactional
    public void saveOrder(Ordr order);

    @Transactional
    public void updateOrder(Ordr order);

    @Transactional
    public void deleteOrder(Long id);




    public Ordr getOrderWithRedis(Long id);

    @Transactional
    public void saveOrderWithRedis(Ordr order);

    @Transactional
    public void updateOrderWithRedis(Ordr order);

    @Transactional
    public void deleteOrderWithRedis(Long id);
}
